/*
 * Supplier.java 2012-8-21
 * Copyright(c) 20012-2015 by covidien
 * ALL Rights Reserved.
 */
package com.mvc.base.model;

import javax.persistence.Entity;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;

import com.mvc.ProjectUtils;
import com.mvc.security.model.User;

/**
 * 
 * @author Bob pu [bangxiong.pu@covidien.com]
 * @version V1.0 Create Time: 2012-8-21
 */
@Entity(name = "B_SUPPLIER")
public class Supplier extends BaseGroup {
	@NotNull
	private Integer	loginUserId;
	@Transient
	private User	user;

	public String getNo() {
		return ProjectUtils.getSupplierNo(getObjectId());
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getLoginUserId() {
		return loginUserId;
	}

	public void setLoginUserId(Integer loginUserId) {
		this.loginUserId = loginUserId;
	}
}
